package com.spark.lola.feign;

import com.spark.lola.statistics.dto.FindLogisticsDto;
import com.spark.lola.statistics.entity.StatisticsDriver;
import com.spark.lola.statistics.entity.StatisticsLogistics;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @author: Zhi-peng wang
 * @date: 2020/05/19 15:08
 **/
@FeignClient(value = "BI-MANAGE", path = "bi/rpc/logistics")
public interface LogisticsBiFeignService {

    @RequestMapping(value = "/statistics/all", method = RequestMethod.POST)
    List<StatisticsLogistics> findStatisticsLogistics(@RequestBody FindLogisticsDto<?> findLogisticsDto);

    @RequestMapping(value = "/statistics/driver", method = RequestMethod.POST)
    List<StatisticsDriver> findStatisticsDriver(@RequestBody FindLogisticsDto<?> findLogisticsDto);

}
